﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="lstFQA.ascx.cs" Inherits="Web.Cms.FQA.lstFAQ" %>
<%@ Register TagPrefix="uc1" TagName="PagingAjax" Src="~/Cms/AjaxCP/Paging.ascx" %>
<div class="fl">
     <a style="cursor:hand;" href="javascript:void(0)" onclick="javascript:return showPopWinADMIN('/Cms/FQA/FQAcreate.aspx','Thêm Mới FQA',700,500,null,__doPostBack)">
        <img src="/App_Themes/Default/Images/Add_b.gif" border="0" />
    </a>  
</div>

<div style="padding-bottom: 20px;" class="fl">
<p class="heading"><asp:Label runat="server" ID="lbHeader"></asp:Label></p>
</div>
<div class="clear8px" style="height: 69px">
    <asp:Label ID="txttimkiem" runat="server" Text="Tìm Kiếm"></asp:Label>
    <asp:TextBox ID="txtKeysearch" runat="server" Width="196px" Height="20px"></asp:TextBox>
    <asp:Button ID="btntimkiem" runat="server" Text="" SkinID="AdminButtonSearch"
        onclick="btntimkiem_Click" />
    </div>
<br />
<div style="clear:both;"><asp:Label Font-Bold="true" ForeColor="red" Font-Size="11px" ID="lblMessage" runat="server"></asp:Label></div>

<br />

<asp:GridView ID="grdFQA" runat="server" BackColor="White" AutoGenerateColumns="False"
 Width="100%" BorderColor="Gainsboro"
	BorderStyle="Solid" BorderWidth="1px" CellPadding="4" CssClass="Grid" 
        onrowdatabound="grdFQA_RowDataBound" 
        onrowcommand="grdFQA_RowCommand">
	<AlternatingRowStyle CssClass="labe_content_02" />
	<RowStyle CssClass="labe_content_01" />
	<HeaderStyle CssClass="labe_Caption" Font-Bold="True" HorizontalAlign="Center" />
    <Columns>               
         <asp:TemplateField HeaderText="STT">
         <ItemTemplate><%#Eval("FAQ_ID")%></ItemTemplate>
         </asp:TemplateField>
        <asp:TemplateField  HeaderText="Câu Hỏi">            
            <ItemTemplate><%#Eval("Question")%></ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField  HeaderText="Câu Trả Lời">            
            <ItemTemplate><%#Eval("Answer")%></ItemTemplate>
        </asp:TemplateField>
        
         <asp:TemplateField HeaderText="Thuộc Danh Mục">
         <ItemTemplate><%#Eval("ZoneId")%></ItemTemplate>
         </asp:TemplateField>
         <asp:TemplateField HeaderText="Date/Time">
         <ItemTemplate><%#Eval("CreatedOn")%></ItemTemplate>
         </asp:TemplateField>
         <asp:TemplateField HeaderText="Người Tạo">
         <ItemTemplate>
         <%#Eval("CreatedBy")%>
         </ItemTemplate>
         </asp:TemplateField>
        <asp:TemplateField HeaderText="Sửa" HeaderStyle-Width="20">
            <ItemTemplate>                                                
                <a style="cursor:hand;" href="javascript:void(0)" onclick="javascript:return showPopWinADMIN('../Cms/FQA/FQAcreate.aspx?FAQ_ID=<%# Eval("FAQ_ID") %>','Chỉnh Sửa Thông Tin FQA',700,400,null,__doPostBack)"><img src="../App_Themes/Default/Images/edit.gif" border="0"></a>
            </ItemTemplate>

<HeaderStyle Width="20px"></HeaderStyle>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Xóa" HeaderStyle-Width="20">
            <ItemTemplate>             
                <asp:Button ID="btnDelete" runat="server" CssClass="Icon_Delete" CommandArgument='<%# Eval("FAQ_ID") %>' CommandName="Commanddelete" OnClientClick="return confirm('Bạn có chắc chắn xóa không ?')" />                   
            </ItemTemplate>

<HeaderStyle Width="20px"></HeaderStyle>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<table cellspacing="0" cellpadding="0" border="0" width="100%">       
    <tr>
        <td colspan="4" align="center" style="height: 21px">
            <br />            
            <uc1:PagingAjax ID="PagingAjax1" runat="server" />            
            <br />
        </td>
    </tr>
</table> 